<template>
	<view class="rebate">
		<uni-card :is-shadow="false" :border="false" :margin="'0 20rpx'" :spacing="'20rpx'" :padding="0">
			<template v-slot:title>
				<view class="title">
					<text class="text">退款</text>
					<view class="">
						<uni-easyinput :clearable="false" :inputBorder="false" type="number" v-model="value" placeholder="请输入金额 (可退金额￥98)"></uni-easyinput>
					</view>
					
				</view>
			</template>
			<uni-easyinput :clearable="false" type="textarea" v-model="value1" placeholder="请输入退款理由"></uni-easyinput>
		</uni-card>
		<view class="pay-but">
			<button class="but" plain @click="submit(value,value1)">提交申请</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:null,
				value1:'',
			};
		},
		methods:{
			submit: function(val,val1) {
				uni.showToast({
					title: `提交内容: 金额：${val} 退款理由：${val1}`,
					icon: 'none',
				});
			}
		}
	}
</script>

<style lang="scss">
.rebate {
	position: relative;
	box-sizing: border-box;
	padding: 20rpx 0;
	height: 100vh;
	.uni-card {
		border-radius: 20rpx;
	}
	.title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom:1rpx solid #EDEDED;
		margin-bottom: 40rpx;
		.text {
			font-size: 28rpx;
			color: #000000;
			margin-bottom: 20rpx;
		}
	}
	.uni-easyinput {
		margin-bottom: 20rpx;
		.is-input-border {
			border-radius: 20rpx;
		}
		.uni-easyinput__content-textarea {
			font-size: 28rpx;
			color: #000000;
			height: 300rpx;
			
		}
	}
	.pay-but {
		position: absolute;
		bottom: 40rpx;
		left: 0;
		width: 100%;
		height: 80rpx;
	
		.but {
			color: #FFFFFF;
			background: linear-gradient(-90deg, #8dc9f1, #d8eefc);
			border-radius: 40rpx;
			line-height: 80rpx;
			border: 0;
			margin: 0 20rpx;
		}
	}
}
</style>
